package com.city.domain.pub;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 居民房屋信息表
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-21 18:54
 */
@Entity
@Table(name = "pub_houseinfo", schema = "city", catalog = "")
public class PubHouseinfo {
    private int id;//主键
    private int userId;//用户,户主id
    private String name;//名称
    private String idCard;//户主证件号码
    private String houseNum;//房屋编号
    private String cardNum;//房产证号
    private String houseWarrant;//房屋权证号
    private String time;//房屋权证发放时间
    private String province;//省份
    private String city;//市
    private String county;//县区
    private String town;//镇乡
    private String village;//村,街道
    private String address;//详细地址
    private String buildName;//建筑物名称
    private String buildTime;//建成年份
    private String buildUse;//建筑物用途
    private String tubeUnit;//物管单位
    private int area;//建筑面积,单位:平方木
    private String structure;//房屋结构
    private String houseUse;//房屋用途
    private String houseFrom;//房屋来源
    private String huxing;//户型
    private String landGet;//土地获取方式
    private int landArea;//批准土地面积
    private int landUsearea;//实际土地面积
    private String landPurpose;//批准土地用途
    private String landUsepurpose;//实际土地用途
    private int landYear;//批准土地年限
    private String landNum;//土地证号
    private String landCoucher;//土地凭证
    private String landWarrant;//土地权证号
    private String landTime;//土地发放时间
    private String landTopr;//产权人类型
    private String landUname;//产权人姓名
    private String landIdtype;//产权人证件类型
    private String landIdCard;//土地所有人证件号码
    private int landUid;//产权人编号,用户编号
    private String lng;//经度
    private String lat;//纬度
    private Integer status;//状态
    private String tellphone;//户主手机号
    private String landTel; //产权人手机号
    private String houseCoucher; //房屋凭证
    private String updateTime;//上传日期
    private String lastTime;//最后一次操作日期
    private String uploadName;//提交人的姓名

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "user_id")
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "house_num")
    public String getHouseNum() {
        return houseNum;
    }

    public void setHouseNum(String houseNum) {
        this.houseNum = houseNum;
    }

    @Basic
    @Column(name = "card_num")
    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    @Basic
    @Column(name = "house_warrant")
    public String getHouseWarrant() {
        return houseWarrant;
    }

    public void setHouseWarrant(String houseWarrant) {
        this.houseWarrant = houseWarrant;
    }

    @Basic
    @Column(name = "time")
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "county")
    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    @Basic
    @Column(name = "town")
    public String getTown() {
        return town;
    }

    public void setTown(String town) {
        this.town = town;
    }

    @Basic
    @Column(name = "village")
    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "build_name")
    public String getBuildName() {
        return buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    @Basic
    @Column(name = "build_time")
    public String getBuildTime() {
        return buildTime;
    }

    public void setBuildTime(String buildTime) {
        this.buildTime = buildTime;
    }

    @Basic
    @Column(name = "build_use")
    public String getBuildUse() {
        return buildUse;
    }

    public void setBuildUse(String buildUse) {
        this.buildUse = buildUse;
    }

    @Basic
    @Column(name = "tube_unit")
    public String getTubeUnit() {
        return tubeUnit;
    }

    public void setTubeUnit(String tubeUnit) {
        this.tubeUnit = tubeUnit;
    }

    @Basic
    @Column(name = "area")
    public int getArea() {
        return area;
    }

    public void setArea(int area) {
        this.area = area;
    }

    @Basic
    @Column(name = "structure")
    public String getStructure() {
        return structure;
    }

    public void setStructure(String structure) {
        this.structure = structure;
    }

    @Basic
    @Column(name = "house_use")
    public String getHouseUse() {
        return houseUse;
    }

    public void setHouseUse(String houseUse) {
        this.houseUse = houseUse;
    }

    @Basic
    @Column(name = "house_from")
    public String getHouseFrom() {
        return houseFrom;
    }

    public void setHouseFrom(String houseFrom) {
        this.houseFrom = houseFrom;
    }

    @Basic
    @Column(name = "huxing")
    public String getHuxing() {
        return huxing;
    }

    public void setHuxing(String huxing) {
        this.huxing = huxing;
    }

    @Basic
    @Column(name = "land_get")
    public String getLandGet() {
        return landGet;
    }

    public void setLandGet(String landGet) {
        this.landGet = landGet;
    }

    @Basic
    @Column(name = "lang_area")
    public int getLangArea() {
        return landArea;
    }

    public void setLangArea(int langArea) {
        this.landArea = langArea;
    }

    @Basic
    @Column(name = "land_usearea")
    public int getLandUsearea() {
        return landUsearea;
    }

    public void setLandUsearea(int landUsearea) {
        this.landUsearea = landUsearea;
    }

    @Basic
    @Column(name = "land_purpose")
    public String getLandPurpose() {
        return landPurpose;
    }

    public void setLandPurpose(String landPurpose) {
        this.landPurpose = landPurpose;
    }

    @Basic
    @Column(name = "land_usepurpose")
    public String getLandUsepurpose() {
        return landUsepurpose;
    }

    public void setLandUsepurpose(String landUsepurpose) {
        this.landUsepurpose = landUsepurpose;
    }

    @Basic
    @Column(name = "land_year")
    public int getLandYear() {
        return landYear;
    }

    public void setLandYear(int landYear) {
        this.landYear = landYear;
    }

    @Basic
    @Column(name = "land_num")
    public String getLandNum() {
        return landNum;
    }

    public void setLandNum(String landNum) {
        this.landNum = landNum;
    }

    @Basic
    @Column(name = "land_coucher")
    public String getLandCoucher() {
        return landCoucher;
    }

    public void setLandCoucher(String landCoucher) {
        this.landCoucher = landCoucher;
    }

    @Basic
    @Column(name = "land_warrant")
    public String getLandWarrant() {
        return landWarrant;
    }

    public void setLandWarrant(String landWarrant) {
        this.landWarrant = landWarrant;
    }

    @Basic
    @Column(name = "land_time")
    public String getLandTime() {
        return landTime;
    }

    public void setLandTime(String landTime) {
        this.landTime = landTime;
    }

    @Basic
    @Column(name = "land_topr")
    public String getLandTopr() {
        return landTopr;
    }

    public void setLandTopr(String landTopr) {
        this.landTopr = landTopr;
    }

    @Basic
    @Column(name = "land_uname")
    public String getLandUname() {
        return landUname;
    }

    public void setLandUname(String landUname) {
        this.landUname = landUname;
    }

    @Basic
    @Column(name = "land_idtype")
    public String getLandIdtype() {
        return landIdtype;
    }

    public void setLandIdtype(String landIdtype) {
        this.landIdtype = landIdtype;
    }

    @Basic
    @Column(name = "land_uid")
    public int getLandUid() {
        return landUid;
    }

    public void setLandUid(int landUid) {
        this.landUid = landUid;
    }

    @Basic
    @Column(name = "lng")
    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    @Basic
    @Column(name = "lat")
    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    @Basic
    @Column(name = "id_card")
    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Basic
    @Column(name = "land_id_card")
    public String getLandIdCard() {
        return landIdCard;
    }

    public void setLandIdCard(String landIdCard) {
        this.landIdCard = landIdCard;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "tellphone")
    public String getTellphone() {
        return tellphone;
    }

    public void setTellphone(String tellphone) {
        this.tellphone = tellphone;
    }
    @Basic
    @Column(name = "land_tel")
    public String getLandTel() {
        return landTel;
    }

    public void setLandTel(String landTel) {
        this.landTel = landTel;
    }

    @Basic
    @Column(name = "house_coucher")
    public String getHouseCoucher() {
        return houseCoucher;
    }

    public void setHouseCoucher(String houseCoucher) {
        this.houseCoucher = houseCoucher;
    }



    @Basic
    @Column(name = "update_time")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "last_time")
    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    @Basic
    @Column( name = "upload_name")
    public String getUploadName() {
        return uploadName;
    }

    public void setUploadName(String uploadName) {
        this.uploadName = uploadName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PubHouseinfo that = (PubHouseinfo) o;
        return id == that.id &&
                userId == that.userId &&
                area == that.area &&
                landArea == that.landArea &&
                landUsearea == that.landUsearea &&
                landYear == that.landYear &&
                landUid == that.landUid &&
                Objects.equals(name, that.name) &&
                Objects.equals(idCard, that.idCard) &&
                Objects.equals(houseNum, that.houseNum) &&
                Objects.equals(cardNum, that.cardNum) &&
                Objects.equals(houseWarrant, that.houseWarrant) &&
                Objects.equals(time, that.time) &&
                Objects.equals(province, that.province) &&
                Objects.equals(city, that.city) &&
                Objects.equals(county, that.county) &&
                Objects.equals(town, that.town) &&
                Objects.equals(village, that.village) &&
                Objects.equals(address, that.address) &&
                Objects.equals(buildName, that.buildName) &&
                Objects.equals(buildTime, that.buildTime) &&
                Objects.equals(buildUse, that.buildUse) &&
                Objects.equals(tubeUnit, that.tubeUnit) &&
                Objects.equals(structure, that.structure) &&
                Objects.equals(houseUse, that.houseUse) &&
                Objects.equals(houseFrom, that.houseFrom) &&
                Objects.equals(huxing, that.huxing) &&
                Objects.equals(landGet, that.landGet) &&
                Objects.equals(landPurpose, that.landPurpose) &&
                Objects.equals(landUsepurpose, that.landUsepurpose) &&
                Objects.equals(landNum, that.landNum) &&
                Objects.equals(landCoucher, that.landCoucher) &&
                Objects.equals(landWarrant, that.landWarrant) &&
                Objects.equals(landTime, that.landTime) &&
                Objects.equals(landTopr, that.landTopr) &&
                Objects.equals(landUname, that.landUname) &&
                Objects.equals(landIdtype, that.landIdtype) &&
                Objects.equals(landIdCard, that.landIdCard) &&
                Objects.equals(lng, that.lng) &&
                Objects.equals(lat, that.lat) &&
                Objects.equals(status, that.status) &&
                Objects.equals(tellphone, that.tellphone) &&
                Objects.equals(landTel, that.landTel) &&
                Objects.equals(houseCoucher, that.houseCoucher) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(lastTime, that.lastTime) &&
                Objects.equals(uploadName, that.uploadName);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, userId, name, idCard, houseNum, cardNum, houseWarrant, time, province, city, county, town, village, address, buildName, buildTime, buildUse, tubeUnit, area, structure, houseUse, houseFrom, huxing, landGet, landArea, landUsearea, landPurpose, landUsepurpose, landYear, landNum, landCoucher, landWarrant, landTime, landTopr, landUname, landIdtype, landIdCard, landUid, lng, lat, status, tellphone, landTel, houseCoucher, updateTime, lastTime, uploadName);
    }

    @Override
    public String toString() {
        return "PubHouseinfo{" +
                "id=" + id +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", houseNum='" + houseNum + '\'' +
                ", cardNum='" + cardNum + '\'' +
                ", houseWarrant='" + houseWarrant + '\'' +
                ", time='" + time + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                ", town='" + town + '\'' +
                ", village='" + village + '\'' +
                ", address='" + address + '\'' +
                ", buildName='" + buildName + '\'' +
                ", buildTime='" + buildTime + '\'' +
                ", buildUse='" + buildUse + '\'' +
                ", tubeUnit='" + tubeUnit + '\'' +
                ", area=" + area +
                ", structure='" + structure + '\'' +
                ", houseUse='" + houseUse + '\'' +
                ", houseFrom='" + houseFrom + '\'' +
                ", huxing='" + huxing + '\'' +
                ", landGet='" + landGet + '\'' +
                ", langArea=" + landArea +
                ", landUsearea=" + landUsearea +
                ", landPurpose='" + landPurpose + '\'' +
                ", landUsepurpose='" + landUsepurpose + '\'' +
                ", landYear=" + landYear +
                ", landNum='" + landNum + '\'' +
                ", landCoucher='" + landCoucher + '\'' +
                ", landWarrant='" + landWarrant + '\'' +
                ", landTime='" + landTime + '\'' +
                ", landTopr='" + landTopr + '\'' +
                ", landUname='" + landUname + '\'' +
                ", landIdtype='" + landIdtype + '\'' +
                ", landIdCard='" + landIdCard + '\'' +
                ", landUid=" + landUid +
                ", lng='" + lng + '\'' +
                ", lat='" + lat + '\'' +
                ", status=" + status +
                ", tellphone='" + tellphone + '\'' +
                ", landTel='" + landTel + '\'' +
                ", houseCoucher='" + houseCoucher + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", lastTime='" + lastTime + '\'' +
                ", uploadName='" + uploadName + '\'' +
                '}';
    }
}
